package com.wbsxch.secondkill.entity;

import org.apache.ibatis.type.Alias;

import java.util.Date;

/**
 * 秒杀明细表
 */
@Alias("SuccessKilled")
public class SuccessKilled {

    private long secondKillId;
    private long phone;
    private short state;
    private Date createTime;
    /* 多对一 */
    private SecondKill secondKill;

    public long getSecondKillId() {
        return secondKillId;
    }

    public void setSecondKillId(long secondKillId) {
        this.secondKillId = secondKillId;
    }

    public long getPhone() {
        return phone;
    }

    public void setPhone(long phone) {
        this.phone = phone;
    }

    public short getState() {
        return state;
    }

    public void setState(short state) {
        this.state = state;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public SecondKill getSecondKill() {
        return secondKill;
    }

    public void setSecondKill(SecondKill secondKill) {
        this.secondKill = secondKill;
    }

    @Override
    public String toString() {
        return "SuccessKilled{" +
                "secondKillId=" + secondKillId +
                ", phone=" + phone +
                ", state=" + state +
                ", createTime=" + createTime +
                ", secondKill=" + secondKill +
                '}';
    }
}
